import { CHANGE_BANNER_LIST, CHANGE_RECOMMEND_LIST } from "./constants"

const initState = {
  bannerList: [],
  recommendList: []
}
export default function (state = initState, action) {
  switch (action.type) {
    case CHANGE_BANNER_LIST:
      return { ...state, bannerList: action.bannerList }
    case CHANGE_RECOMMEND_LIST:
      return { ...state, recommendList: action.recommendList }
  }
  return state
}
